package com.ntschy.sys.entity.dataobject;

import com.baomidou.mybatisplus.annotation.*;
import com.ntschy.common.core.entity.enums.SysBusinessType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ezreal_geng
 */
@Data
@NoArgsConstructor  //无参构造函数
@TableName("SYS_FILE_UP")
@ApiModel(description = "文件上传")
public class SysFileUp {

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID")
    private String id;

    @ApiModelProperty(value = "业务数据id")
    @TableField(value = "BusinessID")
    private String businessId;

    @ApiModelProperty(value = "业务模块")
    @TableField(value = "BusinessType")
    private SysBusinessType businessType;

    @ApiModelProperty(value = "文件名")
    @TableField(value = "FileName")
    private String fileName;

    @ApiModelProperty(value = "文件访问路径")
    @TableField(value = "FilePath")
    private String filePath;

    @ApiModelProperty(value = "创建人")
//    @TableField(value = "CreateUserID", fill = FieldFill.INSERT)
    @TableField(value = "CreateUserID")
    private String createUserId;

    @ApiModelProperty(value = "创建时间")
//    @TableField(value = "CreateTime", fill = FieldFill.INSERT)
    @TableField(value = "CreateTime")
    private String createTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "DelFlag")
    @TableLogic
    private Integer delFlag;
}
